<template>
  <div id="index">
    <el-header class="header">
      <div class="header-content">
        <div class="headerLeft">
          <div class="headerLeft-title">
            <span style="color: #fff">预研项目技术风险评价与管理系统</span>
          </div>
        </div>
        <div class="headerRight">
          <ul>

            <li>
              <img
                src="~@/assets/img/user.png"
                alt=""
                style="height: 2rem; width: 2rem"
              />
              <edituser 
               :show.sync="show"
            @close="close"
            @ok="ok"
              />
              <span style="font-size: 14px; cursor: pointer" @click="open">修改密码</span>
              <span style="font-size: 14px">{{
                this.$store.state.user.loginUser
              }}</span>
            </li>
            <li>
              <img src="~@/assets/img/exit.png" alt="" /><span
                style="font-size: 16px;cursor: pointer" @click="exit"
                >退出登录</span
              >
            </li>
          </ul>
        </div>
      </div>
    </el-header>
    <div id="index1">
      <el-row style="margin-bottom: 80px; margin-top: 50px">
        <el-col :span="4" :offset="4">
          <div class="div1">
            <img src="~@/assets/img/1.png" alt="" width="100%" height="100%" />
            <div class="div2">工程信息管理</div>
            <div class="div3">
              <el-button type="primary" round @click="open1">进入</el-button>
            </div>
          </div></el-col
        >
        <el-col :span="4" :offset="2">
          <div class="div1">
            <img src="~@/assets/img/2.png" alt="" width="100%" height="100%" />
            <div class="div2">技术树管理</div>
            <div class="div3">
              <el-button type="primary" round @click="open2">进入</el-button>
            </div>
          </div></el-col
        >
        <el-col :span="4" :offset="2">
          <div class="div1">
            <img src="~@/assets/img/3.png" alt="" width="100%" height="100%" />
            <div class="div2">技术成熟度评估</div>
            <div class="div3">
              <el-button type="primary" round @click="open3">进入</el-button>
            </div>
          </div></el-col
        >
      </el-row>
      <el-row>
        <el-col :span="4" :offset="4">
          <div class="div1">
            <img src="~@/assets/img/4.png" alt="" width="100%" height="100%" />
            <div class="div2">技术风险评估</div>
            <div class="div3">
              <el-button type="primary" round @click="open4">进入</el-button>
            </div>
          </div></el-col
        >

        <el-col :span="4" :offset="2">
          <div class="div1">
            <img src="~@/assets/img/5.png" alt="" width="100%" height="100%" />
            <div class="div2">综合数据看板</div>
            <div class="div3">
              <el-button type="primary" round @click="open5">进入</el-button>
            </div>
          </div></el-col
        >
        <el-col :span="4" :offset="2">
          <div class="div1">
            <img src="~@/assets/img/6.png" alt="" width="100%" height="100%" />
            <div class="div2">基础信息管理</div>
            <div class="div3">
              <el-button type="primary" round @click="open6">进入</el-button>
            </div>
          </div></el-col
        >
      </el-row>
    </div>
  </div>
</template>

<script>
import edituser from './edituser.vue'

export default {
  components:{
    edituser
  },
  data() {
    return {
      show: false
    };
  },
  methods: {
      exit(){
        localStorage.setItem('token',null)
        this.$router.push({
            path: "/login",
          });
      },
    ok(data) {
      this.show = false;
      console.log(data);
    },
    close() {
      this.show = false;
    },
    open() {
      this.show = true;
    },
    open1() {
      this.$router.push({
          path: "/planMgent",
        });
    },
    open2() {
       this.$router.push({
          path: "/technologydecompose",
        });
    },
    open3() {
      this.$router.push({
          path: "/startAssess",
        });
    },
    open4() {
      this.$router.push({
          path: "/riskAssessment",
        });
    },
    open5() {
      this.$router.push({
          path: "engineeringInformation",
        });
    },
    open6() {
      this.$router.push({
          path: "/zhuanjiaguanli",
        });
    },
  },
};
</script>

<style lang="less" scoped>
span {
  color: black;
}
#index {
  background: url(~assets/img/index.jpeg) no-repeat !important;
  background-size: 100% 100% !important;
  height: 100vh;
}
.header {
  height: 8vh !important;
  background: #2b69a6;
}
.header-content {
  display: flex;
  align-items: center !important;
  justify-content: space-between;
  height: 100%;
}
.headerLeft {
  display: flex;
  // justify-content: center;
  align-items: center;
}

.headerLeft-flot {
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}
.headerLeft-flot img {
  width: 100%;
  height: 100%;
}

.headerLeft-title {
  color: #fff;
  font-size: 1.0714rem;
  margin-left: 0.8571rem;
}
.headerRight {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.headerRight ul {
  list-style-type: none;
  text-align: center;
  display: flex;
  align-items: center;
}
.headerRight ul li span {
  color: #fff;
  font-size: 1.0714rem;
  padding-left: 0.5714rem;
}
.headerRight ul li img {
  width: 1.3rem;
  height: 1.3rem;
  cursor: pointer;
}
.headerRight li {
  display: flex;
  align-items: center;
  padding-left: 1.9286rem;
}
.el-menu-item {
  margin-left: 30px;
}
.el-menu-item:hover {
  background: #fff !important;
  color: #4981b9 !important;
}
.aside {
  border-right: 2px solid #fff;
  height: 93vh;
  background: #fff;
  box-shadow: #cccccc 10px 10px 30px 5px; //边框阴影
  width: 13.6429rem !important;
}
.aside-menu {
  height: 100%;
  background: #fff;
  padding-top: 19px;
}
.aside-none {
  width: 0px !important;
}
.main {
  background: #edeef4;
  padding: 0;
  height: 93vh;
  margin: 0 1rem;
}
.active {
  border-bottom: 0.1429rem solid #5281b4;
  color: #5281b4;
  padding-bottom: 0.1429rem;
}
img {
  width: 100%;
  height: 100%;
}
.div1 {
  position: relative;
  width: 230px;
  height: 260px;
}
.div2 {
  width: 200px;
  position: absolute;
  z-index: 2;
  left: 4.4rem;
  top: 9.3rem;
}
.div3 {
  color: #fff;
  width: 250px;
  position: absolute;
  z-index: 2;
  left: 4.9rem;
  top: 11.8rem;
}
</style>